<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
</style>
<%@include file="common/backheader.jsp" %>
<div class>
    <div class="row">
        <div class="col-md-12 col-sm-12 col-xs-12">
            <div class="x_panel">
                <div class="x_title">
                    <div>
                        <span style="color: black">查看并审核APP信息<span class="fa fa-user" style="color: black"></span></span>
                        ${backendUser.userName}
                    </div>
                    <div class="clearfix"></div>
                </div>
                <div class="x_title">
                    <div>
                        APP基础信息
                    </div>
                    <div style="color: red">${mess}</div>
                    <div class="clearfix"></div>
                </div>
                <div class="x_content">
                    <form class="form-horizontal form-label-left" id="" method="post"
                          action="${pageContext.request.contextPath}"
                          enctype="multipart/form-data">
                        <input type="hidden" value="${appInfo.id}" name="id">
                        <div class="item form-group">
                            <label class="control-label col-md-3 col-sm-3 col-xs-12" for="softwareName">软件名称 <span
                                    class="required">*</span>
                            </label>
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                <input id="softwareName" class="form-control col-md-7 col-xs-12"
                                       data-validate-length-range="6" data-validate-words="2" name="softwareName"
                                       placeholder="请输入软件名称" required="required" type="text"
                                       value="${appInfo.softwareName}" readonly="readonly">
                            </div>
                            <span id="tips_softwareName" class="tips"></span>
                        </div>
                        <div class="item form-group">
                            <label class="control-label col-md-3 col-sm-3 col-xs-12" for="APKName">APK名称 <span
                                    class="required">*</span>
                            </label>
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                <input id="APKName" class="form-control col-md-7 col-xs-12"
                                       data-validate-length-range="6" data-validate-words="2" name="APKName"
                                       placeholder="请输入APK名称" required="required" type="text" value="${appInfo.APKName}"
                                       readonly="readonly">
                            </div>
                            <span id="tips_APKName" class="tips"></span>
                        </div>
                        <div class="item form-group">
                            <label class="control-label col-md-3 col-sm-3 col-xs-12" for="rom">支持ROM <span
                                    class="required">*</span>
                            </label>
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                <input id="rom" class="form-control col-md-7 col-xs-12" data-validate-length-range="6"
                                       data-validate-words="2" name="rom" placeholder="请输入支持的ROM" required="required"
                                       type="text" value="${appInfo.supportROM}" readonly="readonly">
                            </div>
                            <span id="tips_rom" class="tips"></span>
                        </div>
                        <div class="item form-group">
                            <label class="control-label col-md-3 col-sm-3 col-xs-12" for="language">界面语言 <span
                                    class="required">*</span>
                            </label>
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                <input id="language" class="form-control col-md-7 col-xs-12"
                                       data-validate-length-range="6" data-validate-words="2" name="language"
                                       placeholder="请输入软件支持的界面语言" required="required" type="text"
                                       value="${appInfo.interfaceLanguage}" readonly="readonly">
                            </div>
                            <span id="tips_language" class="tips"></span>
                        </div>
                        <div class="item form-group">
                            <label class="control-label col-md-3 col-sm-3 col-xs-12" for="appSize">软件大小 <span
                                    class="required">*</span>
                            </label>
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                <input id="appSize" class="form-control col-md-7 col-xs-12"
                                       data-validate-length-range="6" data-validate-words="2" name="appSize"
                                       placeholder="请输入软件大小，单位为Mb" required="required" type="number"
                                       value="${appInfo.softwareSize}" readonly="readonly">
                            </div>
                            <span id="tips_appSize" class="tips"></span>
                        </div>
                        <div class="item form-group">
                            <label class="control-label col-md-3 col-sm-3 col-xs-12" for="downloads">下载次数 <span
                                    class="required">*</span>
                            </label>
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                <input id="downloads" class="form-control col-md-7 col-xs-12"
                                       data-validate-length-range="6" data-validate-words="2" name="downloads"
                                       placeholder="请输入下载次数" required="required" type="number"
                                       value="${appInfo.downloads}" readonly="readonly">
                            </div>
                            <span id="tips_downloads" class="tips"></span>
                        </div>
                        <div class="item form-group">
                            <label class="control-label col-md-3 col-sm-3 col-xs-12">
                                所属平台 <span class="required">*</span>
                            </label>
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                <span id="flatForm" class="form-control col-md-7 col-xs-12"
                                      data-validate-length-range="6" data-validate-words="2" name="flatForm"
                                      required="required" type="text" readonly="readonly">
                                    <c:if test="${appInfo.flatformId == 1}">手机</c:if>
                                    <c:if test="${appInfo.flatformId == 2}">平板</c:if>
                                    <c:if test="${appInfo.flatformId == 3}">通用</c:if>
                                </span>
                            </div>
                        </div>
                        <div class="item form-group">
                            <label class="control-label col-md-3 col-sm-3 col-xs-12">
                                一级分类 <span class="required">*</span>
                            </label>
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                <span id="categoryName1" class="form-control col-md-7 col-xs-12"
                                      data-validate-length-range="6" data-validate-words="2" name="categoryName1"
                                      required="required" type="text" readonly="readonly">
                                    <c:if test="${appInfo.categoryLevel1 == 1}">全部应用</c:if>
                                    <c:if test="${appInfo.categoryLevel1 == 2}">全部游戏</c:if>
                                </span>
                            </div>
                        </div>
                        <div class="item form-group">
                            <label class="control-label col-md-3 col-sm-3 col-xs-12">
                                二级分类 <span class="required">*</span>
                            </label>
                            <input type="hidden" value="${appInfo.categoryLevel2}" id="categoryName2_Aux">
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                <span id="categoryName2" class="form-control col-md-7 col-xs-12"
                                      data-validate-length-range="6" data-validate-words="2" name="categoryName2"
                                      required="required" type="text" readonly="readonly">
                                </span>
                            </div>
                        </div>
                        <div class="item form-group">
                            <label class="control-label col-md-3 col-sm-3 col-xs-12">
                                三级分类 <span class="required">*</span>
                            </label>
                            <input type="hidden" value="${appInfo.categoryLevel3}" id="categoryName3_Aux">
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                <span id="categoryName3" class="form-control col-md-7 col-xs-12"
                                      data-validate-length-range="6" data-validate-words="2" name="categoryName3"
                                      required="required" type="text" readonly="readonly">
                                </span>
                            </div>
                        </div>
                        <div class="item form-group">
                            <label class="control-label col-md-3 col-sm-3 col-xs-12">APP状态 <span
                                    class="required">*</span>
                            </label>
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                <label for="appStatus"></label>
                                <c:if test="${appInfo.status == 1}">
                                    <input id="appStatus" class="form-control col-md-7 col-xs-12"
                                           data-validate-length-range="6" data-validate-words="2" name=""
                                           required="required" type="text" value="待审核" readonly="readonly"
                                           readonly="readonly">
                                </c:if>
                                <c:if test="${appInfo.status == 2}">
                                    <input id="appStatus" class="form-control col-md-7 col-xs-12"
                                           data-validate-length-range="6" data-validate-words="2" name=""
                                           required="required" type="text" value="审核通过" readonly="readonly"
                                           readonly="readonly">
                                </c:if>
                                <c:if test="${appInfo.status == 3}">
                                    <input id="appStatus" class="form-control col-md-7 col-xs-12"
                                           data-validate-length-range="6" data-validate-words="2" name=""
                                           required="required" type="text" value="审核未通过" readonly="readonly"
                                           readonly="readonly">
                                </c:if>
                                <c:if test="${appInfo.status == 4}">
                                    <input id="appStatus" class="form-control col-md-7 col-xs-12"
                                           data-validate-length-range="6" data-validate-words="2" name=""
                                           required="required" type="text" value="已上架" readonly="readonly"
                                           readonly="readonly">
                                </c:if>
                                <c:if test="${appInfo.status == 5}">
                                    <input id="appStatus" class="form-control col-md-7 col-xs-12"
                                           data-validate-length-range="6" data-validate-words="2" name=""
                                           required="required" type="text" value="已下架" readonly="readonly"
                                           readonly="readonly">
                                </c:if>
                            </div>
                        </div>
                        <div class="item form-group">
                            <label class="control-label col-md-3 col-sm-3 col-xs-12" for="textarea">应用简介<span
                                    class="required">*</span>
                            </label>
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                <textarea id="textarea" required="required" name="textarea"
                                          class="form-control col-md-7 col-xs-12"
                                          placeholder="请输入本软件的相关信息,本信息作为软件的细信息进行软件的介绍。"
                                          readonly="readonly">${appInfo.appInfo}</textarea>
                            </div>
                            <span id="tips_textarea" class="tips"></span>
                        </div>
                        <div class="item form-group">
                            <label class="control-label col-md-3 col-sm-3 col-xs-12" for="logo">LOGO图片 <span
                                    class="required">*</span>
                            </label>
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                <input id="logo" class="form-control col-md-7 col-xs-12" data-validate-length-range="6"
                                       data-validate-words="2" name="logo" required="required" type="file"
                                       onchange="verificationPicFile(this)" readonly="readonly">
                            </div>
                            <span id="tips_logo" class="tips"></span>
                        </div>
                        <div class="form-group">
                            <div class="col-md-6 col-md-offset-3">
                                <a href="${pageContext.request.contextPath }/reviewAdoptOrFail?status=2&appId=${appInfo.id}"><button type="button" class="btn btn-success">审核通过</button></a>
                                <a href="${pageContext.request.contextPath }/reviewAdoptOrFail?status=3&appId=${appInfo.id}"><button type="button" class="btn btn-success">审核未通过</button></a>
                                <a href="${pageContext.request.contextPath }/backManageShow">
                                    <button type="button" class="btn btn-primary">返回</button>
                                </a>
                            </div>
                        </div>
                        <div class="ln_solid"></div>
                    </form>


                </div>
                <div class="x_title">
                    <div class="x_title">
                        <div>
                            最新版本信息
                        </div>
                        <div class="clearfix"></div>
                    </div>
                </div>
                <div class="x_content">
                    <form class="form-horizontal form-label-left" method="post" action=""
                          enctype="multipart/form-data">
                        <input type="hidden" name="id" value="${appVersion.id}">
                        <div class="item form-group">
                            <label class="control-label col-md-3 col-sm-3 col-xs-12" for="versionNo">版本号 <span class="required">*</span>
                            </label>
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                <input id="versionNo" class="form-control col-md-7 col-xs-12"
                                       data-validate-length-range="6" data-validate-words="2" name="versionNo"
                                       placeholder="请输入版本号" required="required" type="text" value="${appVersion.versionNo}" readonly="readonly">
                            </div>
                            <span id="tips_versionNo" class="tips"></span>
                        </div>
                        <div class="item form-group">
                            <label class="control-label col-md-3 col-sm-3 col-xs-12" for="versionSize">版本大小 <span
                                    class="required">*</span>
                            </label>
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                <input id="versionSize" class="form-control col-md-7 col-xs-12"
                                       data-validate-length-range="6" data-validate-words="2" name="versionSize"
                                       placeholder="请输入版本大小，单位为Mb" required="required" type="number" value="${appVersion.versionSize}" readonly>
                            </div>
                            <span id="tips_versionSize" class="tips"></span>
                        </div>
                        <div class="item form-group">
                            <label class="control-label col-md-3 col-sm-3 col-xs-12">发布状态 <span class="required">*</span>
                            </label>
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                <c:if test="${appVersion.status == 1}">待审核</c:if>
                                <c:if test="${appVersion.status == 3}">审核未通过</c:if>
                            </div>
                        </div>
                        <div class="item form-group">
                            <label class="control-label col-md-3 col-sm-3 col-xs-12" for="textarea">版本简介<span
                                    class="required">*</span>
                            </label>
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                <textarea id="appInfo" required="required" name="textarea"
                                          class="form-control col-md-7 col-xs-12"
                                          placeholder="请输入本版本的相关信息,本信息作为该版本的详细信息进行版本介绍。" readonly>${appVersion.versionInfo}</textarea>
                            </div>
                            <span id="tips_appInfo" class="tips"></span>
                        </div>
                        <div class="item form-group">
                            <label class="control-label col-md-3 col-sm-3 col-xs-12" for="apkFile">apk文件 <span class="required">*</span>
                            </label>
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                <input id="apkFile" class="form-control col-md-7 col-xs-12" data-validate-length-range="6"
                                       data-validate-words="2" name="apkFile" required="required" type="file" onchange="verificationPicFile(this)" readonly>
                            </div>
                            <span id="tips_apkFlie" class="tips"></span>
                        </div>
                        <div class="ln_solid"></div>
                    </form>
                </div>
            </div>
        </div>
    </div>
    <input type="hidden" name=appId value="${appInfo.id}">
</div>
<%@include file="common/footer.jsp" %>
<script type="text/javascript" src="${pageContext.request.contextPath }/js/seeApp.js"></script>
